package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Interaction;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InteractionMapper extends BaseMapper<Interaction> {

    List<Interaction> selectAllPeople();

    List<Interaction> selectMessagesUserConversations(String sender, String recipient);

    void insertSendMessageByNameAndRecipient(Interaction interaction);
}
